package com.zhijian.warehouse.manage.service;

import com.zhijian.warehouse.manage.entity.po.StoreRecordProduct;
import com.zhijian.warehouse.manage.entity.vo.request.StoreRecordProductSearchVo;
import com.zhijian.warehouse.manage.entity.vo.request.StoreRecordProductSaveOrUpdateVo;
import com.zhijian.warehouse.manage.entity.vo.response.StoreRecordProductVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 入库产品明细表 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-10-20 22:23:13
 */
public interface StoreRecordProductService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    StoreRecordProduct selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    StoreRecordProductVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param storeRecordProduct
    * @return
    */
    Long insert(StoreRecordProduct storeRecordProduct);

    /**
    * 动态新增
    *
    * @param storeRecordProduct
    * @return
    */
    Long insertSelective(StoreRecordProduct storeRecordProduct);

    /**
    * 更改
    *
    * @param storeRecordProduct
    * @return
    */
    boolean update(StoreRecordProduct storeRecordProduct);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(StoreRecordProduct record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(StoreRecordProductSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(StoreRecordProductSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param storeRecordProductSearchVo
    * @return
    */
    StoreRecordProductVo selectOne(StoreRecordProductSearchVo storeRecordProductSearchVo);

    /**
    * 总数
    *
    * @param storeRecordProductSearchVo
    * @return
    */
    Integer count(StoreRecordProductSearchVo storeRecordProductSearchVo);

    /**
    * 列表
    *
    * @param storeRecordProductSearchVo
    * @return
    */
    List<StoreRecordProductVo> selectList(StoreRecordProductSearchVo storeRecordProductSearchVo);

    /**
    * 分页查询
    *
    * @param storeRecordProductSearchVo
    * @return
    */
    Page<StoreRecordProductVo> selectPage(StoreRecordProductSearchVo storeRecordProductSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<StoreRecordProduct> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param storeRecordProductSearchVo
    * @return
    */
    void deleteByCondition(StoreRecordProductSearchVo storeRecordProductSearchVo);
}